package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import com.example.child_protection.enums.SexEnums;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 儿童档案信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class ChildArchivesInsertRequestDTO extends BaseRequestDTO {
    /**
     * 姓名
     *
     * @mbggenerated
     */
    @ApiParam(value = "姓名",required = true)
    @NotNull
    private String name;

    /**
     * 儿保卡NO
     *
     * @mbggenerated
     */
    @ApiParam(value = "儿保卡NO",required = true)
    @NotNull
    private String cardNo;

    /**
     * 妈妈手机号
     *
     * @mbggenerated
     */
    @ApiParam(value = "妈妈手机号",required = true)
    @NotNull
    private String motherPhone;

    /**
     * 性别
     *
     * @mbggenerated
     */
    @ApiParam(value = "性别",required = true)
    @NotNull
    private SexEnums sex;

    /**
     * 出生日期
     *
     * @mbggenerated
     */
    @ApiParam(value = "出生日期",required = true)
    @NotNull
    private Date age;

    /**
     * 体检次数
     *
     * @mbggenerated
     */
    @ApiParam(value = "体检次数",required = false)
    private Integer physicalExaminationNums;

    /**
     * 上次体检时间
     *
     * @mbggenerated
     */
    @ApiParam(value = "上次体检时间",required = false)
    private Date lastPhysicalExaminationTime;

    /**
     * BMI字数
     *
     * @mbggenerated
     */
    @ApiParam(value = "BMI字数",required = false)
    private String bmi;

    /**
     * 专案提示
     *
     * @mbggenerated
     */
    @ApiParam(value = "专案提示",required = false)
    private String tips;

    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
